package com.sbio.udiapp.ui.model;

import com.blankj.utilcode.util.StringUtils;
import com.sbio.udiapp.adapter.ListItemData;

public class PrdMtrlView1 implements ListItemData {

    private String parentMaterialNo;

    private String parentMaterialName;

    private String parentMaterialId;

    private String moEntryId;

    private int seq;

    public String getMoEntryId() {
        return moEntryId;
    }

    public void setMoEntryId(String moEntryId) {
        this.moEntryId = moEntryId;
    }

    public String getParentMaterialName() {
        return parentMaterialName;
    }

    public void setParentMaterialName(String parentMaterialName) {
        this.parentMaterialName = parentMaterialName;
    }

    public String getParentMaterialId() {
        return parentMaterialId;
    }

    public void setParentMaterialId(String parentMaterialId) {
        this.parentMaterialId = parentMaterialId;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public String getParentMaterialNo() {
        return parentMaterialNo;
    }

    public void setParentMaterialNo(String parentMaterialNo) {
        this.parentMaterialNo = parentMaterialNo;
    }

    @Override
    public String getKey() {
        return moEntryId;
    }

    @Override
    public String getDisplayText() {
        return StringUtils.format("序号：%s\n物料名称：%s", seq, parentMaterialName);
    }
}
